import request from '@/utils/request'
export function getEmployees (params) {
  return request({
    url: '/api/Platform/EmployeeManage/GetEmployees',
    method: 'get',
    params,
  })
}

export function getCombineEmployees (params) {
  return request({
    url: '/api/Platform/EmployeeManage/GetCombineEmployees',
    method: 'get',
    params,
  })
}

export function editEmployee (data) {
  return request({
    url: '/api/Platform/EmployeeManage/EditEmployee',
    method: 'post',
    data,
  })
}

export function deleteEmployee (empId) {
  return request({
    url: '/api/Platform/EmployeeManage/DeleteEmployee',
    method: 'get',
    params: {
      empId
    },
  })
}

export function combineEmployee (params) {
  return request({
    url: '/api/Platform/EmployeeManage/CombineEmployee',
    method: 'get',
    params
  })
}

export function freezeEmployee (empId) {
  return request({
    url: '/api/Platform/EmployeeManage/FreezeEmployee',
    method: 'get',
    params: {
      empId
    },
  })
}

export function unfreezeEmployee (empId) {
  return request({
    url: '/api/Platform/EmployeeManage/UnFreezeEmployee',
    method: 'get',
    params: {
      empId
    },
  })
}